import React, { Component } from "react";
import "./App.css";
// className={`square ${this.props.value ? "heavy" : null}`}
export default class Square extends Component {
  render() {
    console.log(this.props.selected, "square");
    return (
      <div
        className={`square ${this.props.selected ? "heavy" : null} ${this.props.winner ? "winner" : null}`}
        onClick={() => this.props.onClick()}
      >
        {this.props.value}
      </div>
    );
  }
}
